Class A3LMessagingService


  • public abstract class A3LMessagingService
    extends android.content.BroadcastReceiver
    A3LMessagingService class which developer implements to receive message and device id
    • Nested Class Summary

      • Nested classes/interfaces inherited from class android.content.BroadcastReceiver

        android.content.BroadcastReceiver.PendingResult
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void onMessageReceived​(android.content.Context context, RemoteMessage remoteMessage)
      Developer implements this method to receive messages sent from their app server
      abstract void onNewToken​(android.content.Context context, java.lang.String token)
      Developer implements this method to receive device registration id (token) generated by messaging platform e.g ADM or FCM
      void onReceive​(android.content.Context context, android.content.Intent intent)
      This method receives all the message coming from different platforms and transfers the message to developer's implementation
      • Methods inherited from class android.content.BroadcastReceiver

        abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • A3LMessagingService

        public A3LMessagingService()
    • Method Detail

      • onReceive

        public void onReceive​(@NonNull
                              android.content.Context context,
                              @NonNull
                              android.content.Intent intent)
        This method receives all the message coming from different platforms and transfers the message to developer's implementation
        Specified by:
        onReceive in class android.content.BroadcastReceiver
        Parameters:
        context - : Application Context
        intent - : Android Intent
      • onMessageReceived

        public abstract void onMessageReceived​(android.content.Context context,
                                               RemoteMessage remoteMessage)
        Developer implements this method to receive messages sent from their app server
        Parameters:
        context - : Application Context
        remoteMessage - : instance of RemoteMessage
      • onNewToken

        public abstract void onNewToken​(android.content.Context context,
                                        java.lang.String token)
        Developer implements this method to receive device registration id (token) generated by messaging platform e.g ADM or FCM
        Parameters:
        context - : Application Context
        token - : device registration id (token)